package com.yhg.config;

import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestTemplate;
import feign.Logger; //feign包小的Logger
@Configuration
public class OrderConfig {
    @Bean
    @LoadBalanced //注解式负载均衡
    RestTemplate restTemplate (){
        return new RestTemplate();
    }

    @Bean
    Logger.Level  feignLoggerLevel(){
        return Logger.Level.FULL;
    }
}
